package com.wwy.monitor.common;

import lombok.Data;

import java.io.Serializable;

@Data
public class BizResult implements Serializable {

    private static final long serialVersionUID = 7072958101218743076L;

    int code = 1;
    String message = "success";
    Object data;

    public BizResult(Object data) {
        this.data = data;
    }

    public static BizResult view(Object object){
        return new BizResult(object);
    }
}
